Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODDispatcher


Dispatch

Document Shell

The Dispatch method dispatches the specified event to the appropriate part.

ODBoolean Dispatch (inout ODEventData eventData);
eventData
A platform-specific structure representing an event. On return, the fields of the structure may have been modified. On the Mac OS platform, the structure is defined as a Mac OS event record.
return value
kODTrue if the event was handled by a part, or kODFalse if the event is not associated with an existing dispatch module (or if the event was not handled).
DISCUSSION
The document shell and container applications call this method when an event occurs. This method looks up the dispatch module for the specified event in its dispatch module dictionary and then calls the dispatch module's Dispatch method. On the Mac OS platform, this method may also be called by parts that handle events in dialog event filter routines.

SEE ALSO
The ODEventData type (page 890).
The ODEventInfo type (page 891).
The ODDispatchModule::Dispatch method (page 129).
The ODPart::HandleEvent method (page 526).
"How User Events Are Handled" on page 188 in OpenDoc Programmer's Guide.
"Event Filters" on page 233 in OpenDoc Programmer's Guide.
"Creating a Dispatch Module" on page 447 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help